package com.lonely.system.engine.log;

import cn.hutool.extra.spring.SpringUtil;
import com.lonely.common.exception.BusinessException;

/**
 * @author : 黄志标
 * @date: 2025/9/19 17:05
 * @description: 获取日志时间线工厂
 */
public class GetLogTimeLineFactory {

    /**
     * 获取上传实现类
     *
     * @param moduleEnum
     * @return
     */
    public static GetLogTimeLineInterface getLogTimeLine(GetLogTimeModuleEnum moduleEnum) {
        switch (moduleEnum) {
            case SURPLUS_INVENTORY:
            case STOCK_UP_INVENTORY:
                return SpringUtil.getBean(DefaultLogTimeLineService.class);
        }
        throw new BusinessException("日志业务模块错误");
    }

}
